home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / migcmd / RCS / syscalls.h,v < prev   
Encoding:
Text File  |  1988-12-06  |  1.5 KB  |  70 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     88.12.06.13.50.05;  author douglis;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @declaration of global variable listing names of system calls; this
  17. is used here and in sysstat (so far).
  18. @
  19.  
  20.  
  21.  
  22. 1.1
  23. log
  24. @Initial revision
  25. @
  26. text
  27. @/*
  28.  * syscalls.h --
  29.  *
  30.  *    Declaration of the structure used by some user programs to print
  31.  *    information about system call use.
  32.  *
  33.  * Copyright 1988 Regents of the University of California
  34.  * Permission to use, copy, modify, and distribute this
  35.  * software and its documentation for any purpose and without
  36.  * fee is hereby granted, provided that the above copyright
  37.  * notice appear in all copies.  The University of California
  38.  * makes no representations about the suitability of this
  39.  * software for any purpose.  It is provided "as is" without
  40.  * express or implied warranty.
  41.  *
  42.  * $Syscalls: proto.h,v 1.2 88/03/11 08:39:40 ouster Exp $ SPRITE (Berkeley)
  43.  */
  44.  
  45. #ifndef _SYSCALLS
  46. #define _SYSCALLS
  47.  
  48. /*
  49.  * List of system calls to print out, corresponding to call number.
  50.  * Whether or not they're local should be taken from some other
  51.  * file in the kernel rather than repeated here....
  52.  */
  53.  
  54. typedef struct {
  55.     char *name;
  56.     int local;
  57. } SysCallInfo;
  58.  
  59. extern SysCallInfo sysCallArray[];
  60.  
  61. /*
  62.  * sizeof won't work in a different file from where the array is allocated,
  63.  * so we declare a variable for it in the same file.
  64.  */
  65. extern int sysCallArraySize;
  66.  
  67. #endif _SYSCALLS
  68.  
  69. @
  70.